#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	const double t = 0.031415;
	
	int n;
	cin >> n;
	for (int i = 1; i <= n; ++i)
	{
		double x, y;
		cin >> x >> y;
		
		int year = (int)ceil((x*x + y*y) * t);
		
		cout << "Property " << i << ": This property will begin eroding in year " << year << ".\n";
	}
	
	cout << "END OF OUTPUT.\n";
	return 0;
}
